<h1>Here are all Busstops</h1>

<table class = "center">
	<tr>
		<th>Name</th>
		<th>Latitude</th>
		<th>Longitude</th>
		<th></th>
	</tr>
<?php foreach($this->busstop as $stop) : ?>
	<tr>
		<td><?php echo $this->escape($stop->name);?></td>
		<td><?php echo $this->escape($stop->latitude);?></td>
		<td><?php echo $this->escape($stop->longitude);?></td>
		<td>
			<a href="<?php echo $this->url(array('controller'=>'stop',
			'action'=>'editstop', 'id'=>$stop->id));?>">Edit</a>
			<a href="<?php echo $this->url(array('controller'=>'stop',
			'action'=>'deletestop', 'id'=>$stop->id));?>">Delete</a>
		</td>
	</tr>
<?php endforeach; ?>
</table>